 /**
  * @Des: loading 公共页面使用element-plus
  * @Author: willing
  */

import { ElLoading } from 'element-plus'

export default function () {
  const loading = (title: string) => {
    const loadingInstance = ElLoading.service({ text: title })
    return loadingInstance
  }

  return loading

}
